package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("用户登录记录实体")
@TableName("shop_user_log_info")
public class UserLogInfo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("自增主键")
    private Long id;
    @ApiModelProperty("用户编号")
    private String userNo;
    @ApiModelProperty("类型0登录 1登出")
    private Integer type = 0;
    @ApiModelProperty("用户类型@EnumUserType")
    private Integer userType;
    @ApiModelProperty("登录/登出时间")
    private Date logTime;
    @ApiModelProperty("登录设备@EnumLoginPlatform")
    private String platform;
    @ApiModelProperty("登录设备编号")
    private String deviceToken;

    private static final long serialVersionUID = 1L;

}